.rc-modal {
	display: flex;
	flex-direction: column;

	min-width: 400px;
	max-width: 500px;
	height: auto;
	max-height: 90%;

	padding: 1rem;

	animation: dropdown-show 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95);

	border: none;

	background: white;

	box-shadow: 0 0 2px 0 rgba(47, 52, 61, 0.08), 0 0 12px 0 rgba(47, 52, 61, 0.12);

	&-wrapper {
		position: fixed;
		z-index: 10;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;

		display: flex;

		padding: 10px;

		background: rgba(47, 52, 61, 0.8);
		align-items: center;
		justify-content: center;
	}

	&--modal {
		width: 640px;
		max-width: 100%;
	}

	&--modal &__title {
		font-size: 1.375rem;
		font-weight: 500;
	}

	&__description {
		font-size: 0.874rem;
		margin-block-end: 1.5rem;
		margin-block-start: 0.5rem;
	}

	&__title {
		flex: 1 1 auto;

		font-size: 1rem;
	}

	&__close {
		cursor: pointer;
		transform: rotate(45deg);

		font-size: 20px;
	}

	&__header {
		display: flex;
		flex-direction: row;
		flex: 0 0 auto;

		margin-bottom: -16px;
		padding: 16px;

		font-size: 21px;
		justify-content: flex-end;
	}

	&__content {
		position: relative;

		display: flex;

		overflow: hidden auto;

		flex-direction: column;

		min-height: 72px;
		max-height: 90%;

		padding: 16px;

		animation: dropdown-show 0.1s cubic-bezier(0.45, 0.05, 0.55, 0.95);
		align-items: stretch;
	}

	&__content-icon {
		margin: 1.2rem auto;

		font-size: 6rem;

		&--modal-warning {
			color: var(--rc-color-alert);
		}

		&--modal-success {
			color: var(--rc-color-success-light);
		}

		&--modal-info {
			color: var(--rc-color-alert);
		}

		&--modal-error {
			color: var(--rc-color-error-light);
		}
	}

	&__content-text {
		text-align: center;
		word-break: break-word;

		font-size: 1rem;
		line-height: 1.5;
	}

	&__content-error {
		display: none;

		width: 100%;
		margin: 0.5rem 0;

		text-align: center;
		word-break: break-word;

		color: var(--color-white);
		background: var(--rc-color-error);

		line-height: 2;
	}

	&__footer {
		display: flex;

		flex: 0 0 auto;

		padding: 1rem;

		justify-content: space-between;

		& > .rc-button {
			margin: 0;
		}
	}
}

@media (width <= 400px) {
	.rc-modal {
		top: 0 !important;
		bottom: 0;
		left: 0 !important;

		width: 100%;
		min-width: 100%;
		max-width: 100%;

		animation: dropup-show 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95);
	}
}
